const models = require('../models')

models.user.createUser({
  username: 'admin',
  password: '123456789',
  nickname: '管理员',
  avatar: 'https://avatars1.githubusercontent.com/u/11366654?s=40&v=4'
}).then(([msg, insertId]) => {
  if (msg) {
    console.log('创建失败:', msg)
  } else {
    console.log('创建成功:', insertId)
  }
  process.exit(0)
}).catch(err => {
  console.log('创建失败')
  throw err
})
